package com.zenithmind.chat.temp;

import java.util.List;

/**
 * 临时分页结果类 - 解决编译问题
 * 当common模块可用时，应该使用 com.zenithmind.common.result.PageResult
 */
public class PageResult<T> {
    
    private List<T> records;
    private long total;
    private long current;
    private long size;
    
    public PageResult() {}
    
    public PageResult(List<T> records, long total, long current, long size) {
        this.records = records;
        this.total = total;
        this.current = current;
        this.size = size;
    }
    
    // Getters and Setters
    public List<T> getRecords() {
        return records;
    }
    
    public void setRecords(List<T> records) {
        this.records = records;
    }
    
    public long getTotal() {
        return total;
    }
    
    public void setTotal(long total) {
        this.total = total;
    }
    
    public long getCurrent() {
        return current;
    }
    
    public void setCurrent(long current) {
        this.current = current;
    }
    
    public long getSize() {
        return size;
    }
    
    public void setSize(long size) {
        this.size = size;
    }
}
